package levels;

import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.Image;
import org.newdawn.slick.SlickException;

import divers.StaticVariables;

public class Level {
	
	Image background;
	
	protected void init(GameContainer gc) throws SlickException{
		
		
	}
	
	protected void render(GameContainer gc, Graphics g){
		
		for (int i = 0; i<StaticVariables.tiles.length; i++){
			
			StaticVariables.tiles[i].render(g);
			for (int a = 1; a<10; a++){
				Image img = null;
				if (StaticVariables.tiles[i].getType() == "grass"){
					img = StaticVariables.sheet.getSprite(0, 0);
				}
				img.draw(StaticVariables.tiles[i].getX(), StaticVariables.tiles[i].getY() + a*40, 4);
			}
		}
	}
	
	protected void update(GameContainer gc, int delta){
		
		
	}
}
